/** 设备模块 */
let deviceManage = [
  // 设备管理列表
  {
    path: '/deviceManage',
    name: 'deviceManage',
    component(resolve) {
      require(['../view/resourceManage/deviceManage/deviceManage/DeviceManage'], resolve)
    },
    meta: {
      keepAlive: true,
      menuItem: 'deviceManage',
      subMenu: 'deviceManage',
      rootDir: 'resourceManage',
      title: '设备台账管理'
    }
  },
  // 设备管理详情
  {
    path: '/deviceManageDetail',
    name: 'deviceManageDetail',
    component(resolve) {
      require(['../view/resourceManage/deviceManage/deviceManage/DeviceManageDetail'], resolve)
    },
    meta: {
      keepAlive: false,
      menuItem: 'deviceManage',
      subMenu: 'deviceManage',
      rootDir: 'resourceManage',
      title: '设备台账详情'
    }
  },
  // 设备保养管理列表
  {
    path: '/deviceMaintain',
    name: 'deviceMaintain',
    component(resolve) {
      require(['../view/resourceManage/deviceManage/deviceMaintain/DeviceMaintain'], resolve)
    },
    meta: {
      keepAlive: true,
      menuItem: 'deviceMaintain',
      subMenu: 'deviceManage',
      rootDir: 'resourceManage',
      title: '设备保养管理'
    }
  },
  // 设备使用台账列表
  {
    path: '/deviceUse',
    name: 'deviceUse',
    component(resolve) {
      require(['../view/resourceManage/deviceManage/deviceUse/DeviceUse'], resolve)
    },
    meta: {
      keepAlive: true,
      menuItem: 'deviceUse',
      subMenu: 'deviceManage',
      rootDir: 'resourceManage',
      title: '设备使用台账'
    }
  },
  // 设备维修管理列表
  {
    path: '/deviceRepair',
    name: 'deviceRepair',
    component(resolve) {
      require(['../view/resourceManage/deviceManage/deviceRepair/DeviceRepair'], resolve)
    },
    meta: {
      keepAlive: true,
      menuItem: 'deviceRepair',
      subMenu: 'deviceManage',
      rootDir: 'resourceManage',
      title: '设备维修管理'
    }
  },
  // 设备安全记录模板
  {
    path: '/deviceTemplate',
    name: 'deviceTemplate',
    component(resolve) {
      require(['../view/resourceManage/deviceManage/deviceTemplate/DeviceTemplate'], resolve)
    },
    meta: {
      keepAlive: true,
      menuItem: 'deviceTemplate',
      subMenu: 'deviceManage',
      rootDir: 'resourceManage',
      title: '设备安全记录模板'
    }
  },
  // 设备安全记录
  {
    path: '/deviceSafe',
    name: 'deviceSafe',
    component(resolve) {
      require(['../view/resourceManage/deviceManage/deviceSafe/DeviceSafe'], resolve)
    },
    meta: {
      keepAlive: true,
      menuItem: 'deviceSafe',
      subMenu: 'deviceManage',
      rootDir: 'resourceManage',
      title: '设备安全记录'
    }
  },
]

/** 仪器模块 */
let instrumentManage = [
  // 仪器台账管理列表
  {
    path: '/instrumentManage',
    name: 'instrumentManage',
    component(resolve) {
      require(['../view/resourceManage/instrumentManage/instrumentManage/InstrumentManage'], resolve)
    },
    meta: {
      keepAlive: true,
      menuItem: 'instrumentManage',
      subMenu: 'instrumentManage',
      rootDir: 'resourceManage',
      title: '仪器台账管理'
    }
  },
  // 仪器台账管理详情
  {
    path: '/instrumentManageDetail',
    name: 'instrumentManageDetail',
    component(resolve) {
      require(['../view/resourceManage/instrumentManage/instrumentManage/InstrumentManageDetail'], resolve)
    },
    meta: {
      keepAlive: false,
      menuItem: 'instrumentManage',
      subMenu: 'instrumentManage',
      rootDir: 'resourceManage',
      title: '仪器台账详情'
    }
  },
  // 仪器保养管理列表
  {
    path: '/instrumentMaintain',
    name: 'instrumentMaintain',
    component(resolve) {
      require(['../view/resourceManage/instrumentManage/instrumentMaintain/InstrumentMaintain'], resolve)
    },
    meta: {
      keepAlive: true,
      menuItem: 'instrumentMaintain',
      subMenu: 'instrumentManage',
      rootDir: 'resourceManage',
      title: '仪器保养管理'
    }
  },
  // 仪器维修管理列表
  {
    path: '/instrumentRepair',
    name: 'instrumentRepair',
    component(resolve) {
      require(['../view/resourceManage/instrumentManage/instrumentRepair/InstrumentRepair'], resolve)
    },
    meta: {
      keepAlive: true,
      menuItem: 'instrumentRepair',
      subMenu: 'instrumentManage',
      rootDir: 'resourceManage',
      title: '仪器维修管理'
    }
  },
  // 仪器使用台账列表
  {
    path: '/instrumentUse',
    name: 'instrumentUse',
    component(resolve) {
      require(['../view/resourceManage/instrumentManage/instrumentUse/InstrumentUse'], resolve)
    },
    meta: {
      keepAlive: true,
      menuItem: 'instrumentUse',
      subMenu: 'instrumentManage',
      rootDir: 'resourceManage',
      title: '仪器使用台账'
    }
  },
]

/** 工装夹具模块 */
let fixtureManage = [
  // 工装夹具管理列表
  {
    path: '/fixtureManage',
    name: 'fixtureManage',
    component(resolve) {
      require(['../view/resourceManage/fixtureManage/fixtureManage/FixtureManage'], resolve)
    },
    meta: {
      keepAlive: true,
      menuItem: 'fixtureManage',
      subMenu: 'fixtureManage',
      rootDir: 'resourceManage',
      title: '工装夹具台账管理'
    }
  },
  // 工装夹具管理详情
  {
    path: '/fixtureManageDetail',
    name: 'fixtureManageDetail',
    component(resolve) {
      require(['../view/resourceManage/fixtureManage/fixtureManage/FixtureManageDetail'], resolve)
    },
    meta: {
      keepAlive: false,
      menuItem: 'fixtureManage',
      subMenu: 'fixtureManage',
      rootDir: 'resourceManage',
      title: '工装夹具台账管理详情'
    }
  },
  // 工装夹具保养管理列表
  {
    path: '/fixtureMaintain',
    name: 'fixtureMaintain',
    component(resolve) {
      require(['../view/resourceManage/fixtureManage/fixtureMaintain/FixtureMaintain'], resolve)
    },
    meta: {
      keepAlive: true,
      menuItem: 'fixtureMaintain',
      subMenu: 'fixtureManage',
      rootDir: 'resourceManage',
      title: '工装夹具保养管理'
    }
  },
  // 工装夹具维修管理列表
  {
    path: '/fixtureRepair',
    name: 'fixtureRepair',
    component(resolve) {
      require(['../view/resourceManage/fixtureManage/fixtureRepair/FixtureRepair'], resolve)
    },
    meta: {
      keepAlive: true,
      menuItem: 'fixtureRepair',
      subMenu: 'fixtureManage',
      rootDir: 'resourceManage',
      title: '工装夹具维修管理'
    }
  },
  // 工装夹具使用台账列表
  {
    path: '/fixtureUse',
    name: 'fixtureUse',
    component(resolve) {
      require(['../view/resourceManage/fixtureManage/fixtureUse/FixtureUse'], resolve)
    },
    meta: {
      keepAlive: true,
      menuItem: 'fixtureUse',
      subMenu: 'fixtureManage',
      rootDir: 'resourceManage',
      title: '工装夹具使用台账'
    }
  },
]

export default [...deviceManage, ...instrumentManage, ...fixtureManage]
